<form id="pagerForm" method="post" action="{:U($module_name.'/'.$action_name."?model=".$model)}">
    <input type="hidden" name="pageNum" value="{$pageNum}" />
    <input type="hidden" name="numPerPage" value="{$numPerPage}" />
    <input type="hidden" name="orderField" value="{$orderField}" />
    <input type="hidden" name="orderDirection" value="{$orderDirection}" />
</form>
<div class="pageHeader">
    <form rel="pagerForm" {if $selproid}onsubmit="return dwzSearch(this, 'dialog');" {else} onsubmit="return navTabSearch(this);" {/if} action="{:U($module_name.'/'.$action_name)}" method="post">
       <input type ='hidden' name='selproid' value="{$selproid}" />
	    <div class="searchBar">
            <ul class="searchContent">
                <li style="width:200px;">
                <label style="width: 50px;">关键字：</label>
                <input type="text" name="keywords" value="{$keywords}" style="width: 120px;"/>
                </li>
                <li style="width: 100px;">
               <select name="sfield" class="combox">
				<option value="all" {if $wherefields=='all'}selected="selected"{/if}>全部</option>
				<option value="userid" {if $wherefields=='userid'}selected="selected"{/if}>退款用户ID</option>
				<option value="username" {if $wherefields=='username'}selected="selected"{/if}>退款用户名</option>
				<option value="aid" {if $wherefields=='aid'}selected="selected"{/if}>申请用户ID</option>
				<option value="remark" {if $wherefields=='remark'}selected="selected"{/if}>订单号</option>
			</select>
			<input type="hidden" name="sfield_name" value="userid,username,aid,remark" />					
                </li>
				
				<li style="width: 100px;">
					<select name="moneytype" class="combox">
						<option value=''>请选择类型</option>
						<option value='CV' {if $where['moneytype'] == 'CV'}selected{/if}>CV</option>
						<option value='BV' {if $where['moneytype'] == 'BV'}selected{/if}>BV</option>
					</select>
				</li>
                <li style="padding-top:0;"><div class="buttonActive"><div class="buttonContent"><button type="submit">搜索</button></div></div></li>
            </ul>
        </div>
    </form>
</div>
<div class="pageContent">
	
	<table class="table" width="100%" layoutH="86">
		<thead>
			<tr>
				<th orderField="id" {if $orderField=='id'}class="{$orderDirection}"{/if}>ID</th>
				<th orderField="id" {if $orderField=='userid'}class="{$orderDirection}"{/if}>退款用户</th>
				<th orderField="id" {if $orderField=='money'}class="{$orderDirection}"{/if}>退款金额</th>
				<th orderField="id" {if $orderField=='moneytype'}class="{$orderDirection}"{/if}>退款类型</th>		
				<th>退款说明</th>	
				<th orderField="aid" {if $orderField=='id'}class="{$orderDirection}"{/if}>申请用户</th>	
				<th orderField="ctime" {if $orderField=='id'}class="{$orderDirection}"{/if}>申请日期</th>
				<th orderField="mtime" {if $orderField=='id'}class="{$orderDirection}"{/if}>修改日期</th>						
				<th>审核日志</th>				
				<th orderField="authstatus" {if $orderField=='id'}class="{$orderDirection}"{/if}>审核状态</th>			
				<th>操作</th>
			</tr>
		</thead>
		<tbody>
			<volist name="list" id="vo">
			<tr target="sid_user" rel="9" style="height: 40px;">
				<td>{$vo.id}</td>
				<td><a href='{:U('User/detail',array('id'=>$vo['userid']))}' rel="User_detail_{$vo.userid}" height="500" width="580" target="dialog" title="查看">({$vo.userid})&nbsp;&nbsp;{$vo.username}</a></td>
				<td>{$vo['money']/100}</td>
				<td>{$vo.moneytype}</td>	
				<td>{$vo.remark}</td>			
				<td>{$vo.aid}</td>	
				<td>{if $vo['ctime']}{$vo.ctime|date='Y-m-d H:i:s',###}{/if}</td>					
				<td>{if $vo['mtime']}{$vo.mtime|date='Y-m-d H:i:s',###}{/if}</td>
				<td>
					<php>
						if($vo['content']){
							$content = unserialize($vo['content']);
						}
					</php>
                    <volist name="content" id="c">
                        <p>
                            	操作员{$c['authuid']}号 {$c['time']|date='Y-m-d H:i',###} {$c['msg']}
                        </p>
                    </volist>
				</td>
				<td>
					
                    <switch name="vo.authstatus">
                        <case value="1">
                            审核中
                        </case>
                        <case value="2">
                           审核通过 ,退款完成
                        </case>
						   <case value="3">
                           审核不通过
                        </case>
                        <default/>
						未审核
                    </switch>
				</td>
				<td>				
					{if $vo['authstatus']!=2 && $vo['authstatus']!=3 && $vo['status']==1}
				<a href="{:U('Money/refundauth',array('id'=>$vo['id']))}"  target="dialog" width="750" height="500"><font color='green'>审核</font></a>
				{else}关闭{/if}
				<a class="btnLook" href="{:U('Refund/show',array('id'=>$vo['id']))}" rel="Refund_show_{$vo['id']}" height="500" width="750" target="dialog" title="查看">查看</a>
				</td>
			</tr>
			</volist>
		</tbody>
	</table>
	<include file="Index:pages" />
</div>
